﻿<%@ Control Language="C#" AutoEventWireup="true" CodeFile="loadReportWeb.ascx.cs" Inherits="UserControl_Reports_loadReportWeb" %>
<%@ Register TagPrefix="ComponentArt" Namespace="ComponentArt.Web.UI" Assembly="ComponentArt.Web.UI" %>
<%@ Register Assembly="eWorld.UI" Namespace="eWorld.UI" TagPrefix="ew" %>
<style type="text/css">
 .css-xem-bao-cao
 {
     background-image:url(images/Button/Xembaocao.jpg);
     width:102px;
     height:26px
 }
</style>
<script type="text/javascript">
    // Image preloading
    (new Image()).src = 'images/spinner.gif';
    
    function selectProduct(dl)
    {
        var ddl = document.getElementById("ddlFileReport");
        var ddl_tvts = document.getElementById('<%= m_cbo_tvts.ClientID %>');
        var txt_nhap_tu_ngay = document.getElementById('<%= m_dat_nhap_tu_ngay.ClientID %>');
        var txt_nhap_den_ngay = document.getElementById('<%= m_dat_nhap_den_ngay.ClientID %>');
        var txt_goi_tu_ngay = document.getElementById('<%= m_dat_goi_tu_ngay.ClientID %>');
        var txt_goi_den_ngay = document.getElementById('<%= m_dat_goi_den_ngay.ClientID %>');
        callbackFileVideo.callback(ddl.options[ddl.selectedIndex].value, ddl_tvts.value, txt_nhap_tu_ngay.value
                                   , txt_nhap_den_ngay.value, txt_goi_tu_ngay.value, txt_goi_den_ngay.value);
    }
</script>
<table width="100%" align="center" border="0" >	
	<tr>
		<td align="right" valign="bottom" style="height:22px;" >	
		    <asp:label id="lblDileReport" runat="server" CssClass="cssLabel">Chọn báo cáo:</asp:label>&nbsp;&nbsp;
		</td>
		<td align="left" valign="bottom" style="height:22px;" >	
            <asp:DropDownList ID="ddlFileReport" runat="server">
                <asp:ListItem Value="0">--------Tất cả--------</asp:ListItem>
                <asp:ListItem Value="1">Báo cáo 1</asp:ListItem>
                <asp:ListItem Value="2">Báo cáo 2</asp:ListItem>
            </asp:DropDownList>
            <asp:Button ID="m_cmd_report" CssClass="css-xem-bao-cao" runat="server" 
                 onclick="m_cmd_report_Click" />
            </td>
		<td align="left" valign="bottom" style="height:22px;" >	
		    <asp:label id="Label1" runat="server" CssClass="cssLabel">Chọn file xuất báo cáo:</asp:label>
		    <asp:DropDownList id="ddlExportFileReport" runat="server">
                <asp:ListItem Selected="SELECTED" Value="0">--------Chọn--------</asp:ListItem>
                <asp:ListItem Value="1">File Excel Tổng hợp</asp:ListItem>
                <asp:ListItem Value="3">File Excel Báo cáo 1</asp:ListItem>
                <asp:ListItem Value="5">File Excel Báo cáo 2</asp:ListItem>
                <asp:ListItem Value="2">File Word Tổng hợp</asp:ListItem>
                <asp:ListItem Value="4">File Word Báo cáo 1</asp:ListItem>
                <asp:ListItem Value="6">File Word Báo cáo 2</asp:ListItem>
            </asp:DropDownList>
            <asp:Button ID ="btnExportFile" runat="server" onclick="btnExportFile_Click" CssClass="cssButton" Text="Xuất file báo cáo" Width="98px" /></td>
	</tr>
	<tr>
		<td align="right" valign="bottom" style="height:22px;" >	
		    <asp:label id="lblDileReport1" runat="server" CssClass="cssLabel">Chọn nhóm:</asp:label>
		    </td>
		<td align="left" valign="bottom" style="height:22px;" >	
		    <asp:DropDownList ID="m_cbo_nhom_tvts" runat="server" Width="40%" AutoPostBack="true"
                onselectedindexchanged="m_cbo_nhom_tvts_SelectedIndexChanged">
            </asp:DropDownList>
		</td>
		<td align="left" valign="bottom" style="height:22px;" >	
		    <asp:label id="lblDileReport0" runat="server" CssClass="cssLabel">Chọn tư vấn tuyển sinh:</asp:label>
		    <asp:DropDownList ID="m_cbo_tvts" runat="server" Width="40%">
            </asp:DropDownList>
		</td>
	</tr>
	<tr>
		<td align="right" valign="bottom" style="height:22px;" >	
            <strong>Chọn thời gian gọi:</strong> &nbsp;&nbsp;</td>
		<td align="left" valign="bottom" style="height:22px;">
           <asp:label id="Label2" runat="server" Text="Từ ngày"></asp:label>
		    &nbsp;&nbsp;
		         <ew:CalendarPopup ID="m_dat_goi_tu_ngay" runat="server" 
                                                        AllowArbitraryText="False" 
                CalendarLocation="Bottom" CellPadding="0px" 
                                                        ControlDisplay="TextBoxImage" Culture="Vietnamese (Vietnam)" 
                                                        DisableTextboxEntry="false" 
                ImageUrl="~/js/cal.gif" Nullable="True" Text="Chọn" 
                                                        VisibleDate="" Width="35%">
                                                        <SelectedDateStyle BackColor="Yellow" 
                                                            Font-Names="Verdana,Helvetica,Tahoma,Arial" Font-Size="XX-Small" 
                                                            ForeColor="Black" />
                                                        <WeekendStyle BackColor="LightGray" Font-Names="Verdana,Helvetica,Tahoma,Arial" 
                                                            Font-Size="XX-Small" ForeColor="Black" />
                                                        <GoToTodayStyle BackColor="White" Font-Names="Verdana,Helvetica,Tahoma,Arial" 
                                                            Font-Size="XX-Small" ForeColor="Black" />
                                                        <DayHeaderStyle BackColor="Orange" Font-Names="Verdana,Helvetica,Tahoma,Arial" 
                                                            Font-Size="XX-Small" ForeColor="Black" />
                                                        <MonthHeaderStyle BackColor="Yellow" 
                                                            Font-Names="Verdana,Helvetica,Tahoma,Arial" Font-Size="XX-Small" 
                                                            ForeColor="Black" />
                                                        <WeekdayStyle BackColor="White" Font-Names="Verdana,Helvetica,Tahoma,Arial" 
                                                            Font-Size="XX-Small" ForeColor="Black" />
                                                        <HolidayStyle BackColor="White" Font-Names="Verdana,Helvetica,Tahoma,Arial" 
                                                            Font-Size="XX-Small" ForeColor="Black" />
                                                        <OffMonthStyle BackColor="AntiqueWhite" 
                                                            Font-Names="Verdana,Helvetica,Tahoma,Arial" Font-Size="XX-Small" 
                                                            ForeColor="Gray" />
                                                        <ClearDateStyle BackColor="White" Font-Names="Verdana,Helvetica,Tahoma,Arial" 
                                                            Font-Size="XX-Small" ForeColor="Black" />
                                                        <TodayDayStyle BackColor="LightGoldenrodYellow" 
                                                            Font-Names="Verdana,Helvetica,Tahoma,Arial" Font-Size="XX-Small" 
                                                            ForeColor="Black" />
                                                    </ew:CalendarPopup>
                </td>
            <td><strong>Chọn thời nhập gọi:</strong> &nbsp;&nbsp;<asp:label id="Label4" 
                    runat="server" Text="Từ ngày"></asp:label>
		    &nbsp;<ew:CalendarPopup ID="m_dat_nhap_tu_ngay" runat="server" 
                                                        AllowArbitraryText="False" 
                CalendarLocation="Bottom" CellPadding="0px" 
                                                        ControlDisplay="TextBoxImage" Culture="Vietnamese (Vietnam)" 
                                                        DisableTextboxEntry="false" 
                ImageUrl="~/js/cal.gif" Nullable="True" Text="Chọn" 
                                                        VisibleDate="" Width="35%">
                                                        <SelectedDateStyle BackColor="Yellow" 
                                                            Font-Names="Verdana,Helvetica,Tahoma,Arial" Font-Size="XX-Small" 
                                                            ForeColor="Black" />
                                                        <WeekendStyle BackColor="LightGray" Font-Names="Verdana,Helvetica,Tahoma,Arial" 
                                                            Font-Size="XX-Small" ForeColor="Black" />
                                                        <GoToTodayStyle BackColor="White" Font-Names="Verdana,Helvetica,Tahoma,Arial" 
                                                            Font-Size="XX-Small" ForeColor="Black" />
                                                        <DayHeaderStyle BackColor="Orange" Font-Names="Verdana,Helvetica,Tahoma,Arial" 
                                                            Font-Size="XX-Small" ForeColor="Black" />
                                                        <MonthHeaderStyle BackColor="Yellow" 
                                                            Font-Names="Verdana,Helvetica,Tahoma,Arial" Font-Size="XX-Small" 
                                                            ForeColor="Black" />
                                                        <WeekdayStyle BackColor="White" Font-Names="Verdana,Helvetica,Tahoma,Arial" 
                                                            Font-Size="XX-Small" ForeColor="Black" />
                                                        <HolidayStyle BackColor="White" Font-Names="Verdana,Helvetica,Tahoma,Arial" 
                                                            Font-Size="XX-Small" ForeColor="Black" />
                                                        <OffMonthStyle BackColor="AntiqueWhite" 
                                                            Font-Names="Verdana,Helvetica,Tahoma,Arial" Font-Size="XX-Small" 
                                                            ForeColor="Gray" />
                                                        <ClearDateStyle BackColor="White" Font-Names="Verdana,Helvetica,Tahoma,Arial" 
                                                            Font-Size="XX-Small" ForeColor="Black" />
                                                        <TodayDayStyle BackColor="LightGoldenrodYellow" 
                                                            Font-Names="Verdana,Helvetica,Tahoma,Arial" Font-Size="XX-Small" 
                                                            ForeColor="Black" />
                                                    </ew:CalendarPopup>
                </td>
	</tr>
	<tr>
		<td align="right" valign="bottom" style="height:22px;" >	
		    &nbsp;</td>
		<td align="left" valign="bottom" style="height:22px;" >
            <asp:Label ID="Label3" runat="server" Text="Đến ngày"></asp:Label>
&nbsp;<ew:CalendarPopup ID="m_dat_goi_den_ngay" runat="server" 
                                                        AllowArbitraryText="False" 
                CalendarLocation="Bottom" CellPadding="0px" 
                                                        ControlDisplay="TextBoxImage" Culture="Vietnamese (Vietnam)" 
                                                        DisableTextboxEntry="false" 
                ImageUrl="~/js/cal.gif" Nullable="True" Text="Chọn" 
                                                        VisibleDate="" Width="35%">
                                                        <SelectedDateStyle BackColor="Yellow" 
                                                            Font-Names="Verdana,Helvetica,Tahoma,Arial" Font-Size="XX-Small" 
                                                            ForeColor="Black" />
                                                        <WeekendStyle BackColor="LightGray" Font-Names="Verdana,Helvetica,Tahoma,Arial" 
                                                            Font-Size="XX-Small" ForeColor="Black" />
                                                        <GoToTodayStyle BackColor="White" Font-Names="Verdana,Helvetica,Tahoma,Arial" 
                                                            Font-Size="XX-Small" ForeColor="Black" />
                                                        <DayHeaderStyle BackColor="Orange" Font-Names="Verdana,Helvetica,Tahoma,Arial" 
                                                            Font-Size="XX-Small" ForeColor="Black" />
                                                        <MonthHeaderStyle BackColor="Yellow" 
                                                            Font-Names="Verdana,Helvetica,Tahoma,Arial" Font-Size="XX-Small" 
                                                            ForeColor="Black" />
                                                        <WeekdayStyle BackColor="White" Font-Names="Verdana,Helvetica,Tahoma,Arial" 
                                                            Font-Size="XX-Small" ForeColor="Black" />
                                                        <HolidayStyle BackColor="White" Font-Names="Verdana,Helvetica,Tahoma,Arial" 
                                                            Font-Size="XX-Small" ForeColor="Black" />
                                                        <OffMonthStyle BackColor="AntiqueWhite" 
                                                            Font-Names="Verdana,Helvetica,Tahoma,Arial" Font-Size="XX-Small" 
                                                            ForeColor="Gray" />
                                                        <ClearDateStyle BackColor="White" Font-Names="Verdana,Helvetica,Tahoma,Arial" 
                                                            Font-Size="XX-Small" ForeColor="Black" />
                                                        <TodayDayStyle BackColor="LightGoldenrodYellow" 
                                                            Font-Names="Verdana,Helvetica,Tahoma,Arial" Font-Size="XX-Small" 
                                                            ForeColor="Black" />
                                                    </ew:CalendarPopup>
                                                &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
            &nbsp;&nbsp;</td>
            <td>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
            &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <asp:label id="Label5" 
                    runat="server" Text="Đến ngày"></asp:label>
		    &nbsp;
                <ew:CalendarPopup ID="m_dat_nhap_den_ngay" runat="server" 
                                                        AllowArbitraryText="False" 
                CalendarLocation="Bottom" CellPadding="0px" 
                                                        ControlDisplay="TextBoxImage" Culture="Vietnamese (Vietnam)" 
                                                        DisableTextboxEntry="false" 
                ImageUrl="~/js/cal.gif" Nullable="True" Text="Chọn" 
                                                        VisibleDate="" Width="35%">
                                                        <SelectedDateStyle BackColor="Yellow" 
                                                            Font-Names="Verdana,Helvetica,Tahoma,Arial" Font-Size="XX-Small" 
                                                            ForeColor="Black" />
                                                        <WeekendStyle BackColor="LightGray" Font-Names="Verdana,Helvetica,Tahoma,Arial" 
                                                            Font-Size="XX-Small" ForeColor="Black" />
                                                        <GoToTodayStyle BackColor="White" Font-Names="Verdana,Helvetica,Tahoma,Arial" 
                                                            Font-Size="XX-Small" ForeColor="Black" />
                                                        <DayHeaderStyle BackColor="Orange" Font-Names="Verdana,Helvetica,Tahoma,Arial" 
                                                            Font-Size="XX-Small" ForeColor="Black" />
                                                        <MonthHeaderStyle BackColor="Yellow" 
                                                            Font-Names="Verdana,Helvetica,Tahoma,Arial" Font-Size="XX-Small" 
                                                            ForeColor="Black" />
                                                        <WeekdayStyle BackColor="White" Font-Names="Verdana,Helvetica,Tahoma,Arial" 
                                                            Font-Size="XX-Small" ForeColor="Black" />
                                                        <HolidayStyle BackColor="White" Font-Names="Verdana,Helvetica,Tahoma,Arial" 
                                                            Font-Size="XX-Small" ForeColor="Black" />
                                                        <OffMonthStyle BackColor="AntiqueWhite" 
                                                            Font-Names="Verdana,Helvetica,Tahoma,Arial" Font-Size="XX-Small" 
                                                            ForeColor="Gray" />
                                                        <ClearDateStyle BackColor="White" Font-Names="Verdana,Helvetica,Tahoma,Arial" 
                                                            Font-Size="XX-Small" ForeColor="Black" />
                                                        <TodayDayStyle BackColor="LightGoldenrodYellow" 
                                                            Font-Names="Verdana,Helvetica,Tahoma,Arial" Font-Size="XX-Small" 
                                                            ForeColor="Black" />
                                                    </ew:CalendarPopup>
                </td>
	</tr>
	<tr>
		<td align="center" valign="top" colspan="3"  >
			<ComponentArt:CallBack id="callbackFileVideo" 
                CacheContent="true" CssClass="CallBackCenter" Width="100%" runat="server" OnCallback="callbackFileVideo_Callback">
                <Content>
                    <asp:PlaceHolder id="PlaceHolder1" runat="server">
		                <table width="100%" align="center" border="0" >	
		                    <tr id="trReport1" runat="server">
		                        <td  align="center" valign="top" >
		                            <asp:Literal ID="ltReport" runat="server"></asp:Literal>
		                        </td>
	                        </tr>
	                        <tr id="trReport2" runat="server">
		                        <td  align="center" valign="top" >
		                            <asp:Literal ID="ltReport2" runat="server"></asp:Literal>
		                        </td>
	                        </tr>
		                </table>
                    </asp:PlaceHolder>
                </Content>
                <LoadingPanelClientTemplate>
                    <table style="width:100%" cellspacing="0" cellpadding="0" border="0">
                        <tr>
                            <td align="center" valign="middle">
                                <table cellspacing="0" cellpadding="0" border="0">
                                    <tr>
                                        <td style="font-size:10px;">Loading...&nbsp;</td>
                                        <td>
                                            <img src="images/spinner.gif" width="16" height="16" border="0">
                                        </td>
                                    </tr>
                                </table>
                            </td>
                        </tr>
                    </table>
                </LoadingPanelClientTemplate>
            </ComponentArt:CallBack>            
		</td>
	</tr>
</table>